package cn.tedu.bonfire.front.content.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class CommentAddNewDTO implements Serializable {

    @ApiModelProperty(value = "评论内容")
    @Pattern(regexp ="^.{0,300}$",message = "发布失败，评论最多不能超过300字")
    private String content;

    @ApiModelProperty(value = "资源id")
    private Long resourceId;

    @ApiModelProperty(value = "父级评论id")
    private Long parentId ;

    @ApiModelProperty(value = "笔记id")
    private Long noteId;

    @ApiModelProperty(value = "评论人id")
    private Long userId;

}
